package home_work6;

import java.util.Date;

public class Emp {
	private String name;
	private int age;
	private String gender;
	private int salary;
	private Date hiredate;
	public  Emp() {}
	public Emp(String name1,int age1,String gender1,int salary1,Date hiredate1) {
		name=name1;
		age=age1;
		gender=gender1;
		salary=salary1;
		hiredate=hiredate1;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public int getSalary() {
		return salary;
	}
	public void setSalary(int salary) {
		this.salary = salary;
	}
	public Date getHiredate() {
		return hiredate;
	}
	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}
	public  String toString() {
		return name+","+age+","+gender+","+salary+","+hiredate;
	}
	public boolean equals( Emp obj) {
		return(this.name==obj.name);
	}
}
